package luogu;

import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        double s = 0;
        int i=0;
        while(s<=k){
            i++;
            s+=(double)1/i;
        }
        System.out.println(i);
    }
}
